import request from '@/utils/request'

// 查询发送消息记录列表
export function listRecords (query) {
    return request({
        url: '/system/records/list',
        method: 'get',
        params: query
    })
}

// 查询发送消息记录详细
export function getRecords (sendState) {
    return request({
        url: '/system/records/' + sendState,
        method: 'get'
    })
}

// 新增发送消息记录
export function addRecords (data) {
    return request({
        url: '/system/records',
        method: 'post',
        data: data
    })
}

// 修改发送消息记录
export function updateRecords (data) {
    return request({
        url: '/system/records',
        method: 'put',
        data: data
    })
}

// 删除发送消息记录
export function delRecords (sendState) {
    return request({
        url: '/system/records/' + sendState,
        method: 'delete'
    })
}